@extends("admin_system/public/layout")

@section('content')
    <div class="col-xs-12 top-nav nav">
        <p class="float-left nav-path"><strong>当前位置：</strong>企业管理>>企业列表</p>



        {{--返回按钮--}}
        <button type="button" class="btn btn-default float-right back ml10" aria-label="Left Align">
            <span class="glyphicon glyphicon-arrow-left back" aria-hidden="true"></span>
            <span>返回</span>
        </button>

        <a href="/admin_system/666active/enter?fun=edit_manager" class="btn btn-danger float-right">添加管理员</a>
    </div>

    <div class="content-box col-xs-12 mt20 pb20 pt20">

        <table class="table table-hover table-bordered">
            <tr>
                <th>编号</th>
                <th>姓名</th>
                <td>微信名</td>
                <td>电话</td>
                <td>银行</td>
                <td>银行卡</td>
                <th>操作</th>
            </tr>

            @foreach($managers as $key=>$manager)
                <tr>
                    <td>{{($managers->currentPage()-1) * $managers->perPage() + $key + 1 }}</td>
                    <td>{{$manager->real_name}}</td>
                    <td>{{$manager->wx_name}}</td>
                    <td>{{$manager->mobile}}</td>
                    <td>{{$manager->bank_name}}</td>
                    <td>{{$manager->bank_code}}</td>
                    <td>
                        <a href="{{asset('admin_system/666active/enter?fun=orders&managerId='.$manager->id)}}" class="btn btn-xs btn-info">查看订单</a>
                        <a href="{{asset('admin_system/666active/enter?fun=edit_manager&managerId='.$manager->id)}}" class="btn btn-xs btn-info">编辑</a>
                        <a href="{{asset('admin_system/666active/enter?fun=delete_manager&managerId='.$manager->id)}}" class="btn btn-xs btn-danger" onclick="return confirm('确定彻底删除？')">删除</a>
                    </td>
                </tr>
            @endforeach
        </table>

        {!! $managers->appends(['keywords'=>''])->links() !!}

    </div>
@endsection